﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011DF RID: 4575
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpringRecoverScRsp : IMessage<SpringRecoverScRsp>, IMessage, IEquatable<SpringRecoverScRsp>, IDeepCloneable<SpringRecoverScRsp>, IBufferMessage
	{
		// Token: 0x170039EA RID: 14826
		// (get) Token: 0x0600CCDF RID: 52447 RVA: 0x00227E99 File Offset: 0x00226099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpringRecoverScRsp> Parser
		{
			get
			{
				return SpringRecoverScRsp._parser;
			}
		}

		// Token: 0x170039EB RID: 14827
		// (get) Token: 0x0600CCE0 RID: 52448 RVA: 0x00227EA0 File Offset: 0x002260A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpringRecoverScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039EC RID: 14828
		// (get) Token: 0x0600CCE1 RID: 52449 RVA: 0x00227EB2 File Offset: 0x002260B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpringRecoverScRsp.Descriptor;
			}
		}

		// Token: 0x0600CCE2 RID: 52450 RVA: 0x00227EB9 File Offset: 0x002260B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverScRsp()
		{
		}

		// Token: 0x0600CCE3 RID: 52451 RVA: 0x00227EC4 File Offset: 0x002260C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverScRsp(SpringRecoverScRsp other) : this()
		{
			this.healPoolInfo_ = ((other.healPoolInfo_ != null) ? other.healPoolInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CCE4 RID: 52452 RVA: 0x00227F10 File Offset: 0x00226110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpringRecoverScRsp Clone()
		{
			return new SpringRecoverScRsp(this);
		}

		// Token: 0x170039ED RID: 14829
		// (get) Token: 0x0600CCE5 RID: 52453 RVA: 0x00227F18 File Offset: 0x00226118
		// (set) Token: 0x0600CCE6 RID: 52454 RVA: 0x00227F20 File Offset: 0x00226120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HealPoolInfo HealPoolInfo
		{
			get
			{
				return this.healPoolInfo_;
			}
			set
			{
				this.healPoolInfo_ = value;
			}
		}

		// Token: 0x170039EE RID: 14830
		// (get) Token: 0x0600CCE7 RID: 52455 RVA: 0x00227F29 File Offset: 0x00226129
		// (set) Token: 0x0600CCE8 RID: 52456 RVA: 0x00227F31 File Offset: 0x00226131
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CCE9 RID: 52457 RVA: 0x00227F3A File Offset: 0x0022613A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpringRecoverScRsp);
		}

		// Token: 0x0600CCEA RID: 52458 RVA: 0x00227F48 File Offset: 0x00226148
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpringRecoverScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.HealPoolInfo, other.HealPoolInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CCEB RID: 52459 RVA: 0x00227F98 File Offset: 0x00226198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.healPoolInfo_ != null)
			{
				num ^= this.HealPoolInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CCEC RID: 52460 RVA: 0x00227FED File Offset: 0x002261ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CCED RID: 52461 RVA: 0x00227FF5 File Offset: 0x002261F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CCEE RID: 52462 RVA: 0x00228000 File Offset: 0x00226200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.healPoolInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.HealPoolInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CCEF RID: 52463 RVA: 0x0022805C File Offset: 0x0022625C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.healPoolInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.HealPoolInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CCF0 RID: 52464 RVA: 0x002280B4 File Offset: 0x002262B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpringRecoverScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.healPoolInfo_ != null)
			{
				if (this.healPoolInfo_ == null)
				{
					this.HealPoolInfo = new HealPoolInfo();
				}
				this.HealPoolInfo.MergeFrom(other.HealPoolInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CCF1 RID: 52465 RVA: 0x0022811C File Offset: 0x0022631C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CCF2 RID: 52466 RVA: 0x00228128 File Offset: 0x00226328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.healPoolInfo_ == null)
					{
						this.HealPoolInfo = new HealPoolInfo();
					}
					input.ReadMessage(this.HealPoolInfo);
				}
			}
		}

		// Token: 0x04005235 RID: 21045
		private static readonly MessageParser<SpringRecoverScRsp> _parser = new MessageParser<SpringRecoverScRsp>(() => new SpringRecoverScRsp());

		// Token: 0x04005236 RID: 21046
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005237 RID: 21047
		public const int HealPoolInfoFieldNumber = 7;

		// Token: 0x04005238 RID: 21048
		private HealPoolInfo healPoolInfo_;

		// Token: 0x04005239 RID: 21049
		public const int RetcodeFieldNumber = 8;

		// Token: 0x0400523A RID: 21050
		private uint retcode_;
	}
}
